const R = require('koa-router');
let router = new R();

const goodsController=require('../controller/goodsController.js')


//添加商品
router.post('/admin/goods',goodsController.add)
//获取商品的列表
router.get('/admin/goods',goodsController.list)
//修改一个商品的信息
router.put('/admin/goods/:id', goodsController.mod)
//获取一个商品的信息
router.get('/admin/goods/:id', goodsController.get)
// router.delete('/admin/goods', goodsController.del)



module.exports = router